Skip to main content

in

Type

keyword

Summary

Designates the string that contains a chunk expression.

Syntax

in

Description

Use the in keyword as a synonym for the of keyword in chunk expressions.

When designating a part of a string, use the in keyword after the chunk type. For example, to specify the first word of a string, use an expression like this:

    word 1 in string

In complex chunk expressions with multiple chunk types, use the in keyword after each chunk type. For example, to specify the last character of the second line of a string, use an expression like this:

    last char in line 2 in string

When designating the number of chunks in a string, use the in keyword after the chunk type. For example, to get the number of lines in a string, use an expression like this:

    the number of lines in string

Examples

repeat with x = 1 to the number of items in the hilitedLines of me

glossary: keyword, chunk, chunk expression, expression

keyword: character, of, word, line, string, lines

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?